package com.hlm.temperature_regulate.dao;

import java.util.Date;

/**
 * 外部天气数据类型为 String ，Date
 * 数据库中的数据类型为 varchar
 * 查询时需要varchar + 0.0 和 DATE_FORMAT()
 *  转换成 数字类型 和需要的日期类型
 */
public class WeatherInfo {
    private String dayTemperature;
    private String nightTemperature;
    private Date date ;

    public String getDayTemperature() {
        return dayTemperature;
    }

    public void setDayTemperature(String dayTemperature) {
        this.dayTemperature = dayTemperature;
    }

    public String getNightTemperature() {
        return nightTemperature;
    }

    public void setNightTemperature(String nightTemperature) {
        this.nightTemperature = nightTemperature;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "WeatherInfo{" +
                "dayTemperature=" + dayTemperature +
                ", nightTemperature=" + nightTemperature +
                ", date=" + date +
                '}';
    }
}
